package com.glorysoft.wangnianxinpda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.glorysoft.wangnianxinpda.adapter.viewholder.DataBindingBaseViewHolder;
import com.glorysoft.wangnianxinpda.databinding.AdapterAbnomalCodeDialogBinding;
import com.glorysoft.wangnianxinpda.databinding.AdapterRecipeNameBinding;
import com.glorysoft.wangnianxinpda.entity.AbnomalCodeEntity;
import com.glorysoft.wangnianxinpda.entity.PDARecipeInfoReturnEntity;

import java.util.List;

/**
 * @Author Zhangjy
 * @Date 2021/7/1 18:38
 * Description :
 */
public class RecipeNameAdapter extends BaseQuickAdapter<String, DataBindingBaseViewHolder> {

    public RecipeNameAdapter(int layoutResId, @Nullable List<String> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(DataBindingBaseViewHolder helper, String item) {
        AdapterRecipeNameBinding dataBinding = (AdapterRecipeNameBinding) helper.getDataBinding();
        dataBinding.setRecipeName(item);
        dataBinding.executePendingBindings();
    }
}
